package it.anddev.ttapp;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;

public class Info extends Activity{

	final static int SITE = 0;
	
	public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.info_layout);
	
	TextView textview = (TextView) findViewById(R.id.info_tv);
	textview.setText(getString(R.string.description));
	}


	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		menu.add(0, SITE, 0, R.string.site).setIcon(getResources().getDrawable(R.drawable.site));
		return true;
	}
	
	@Override
	public boolean onMenuItemSelected(int featureId, MenuItem item) {
		switch (item.getItemId()){
		case SITE: //TODO add link to main page/forum
			break;
		}
		return false;
	}


}